package com.uniledger.exchange.bank;

import android.content.Context;

import java.io.IOException;
import java.io.InputStream;

public class Util {
    public static String getStr(Context context, String fileName) {
        String result = "";
        try {
            InputStream is = context.getAssets().open(fileName);
            int lenght = is.available();
            byte[] buffer = new byte[lenght];
            is.read(buffer);
            result = new String(buffer, "utf8");
        } catch (IOException e) {
            e.printStackTrace();
        }
        return result;
    }
}
